package org.jon.lagoon;

import org.jon.lagoon.config.JwtFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class LagoonSpringBootApplication {

	/**
	 * 配置一个 Filter
	 * @return
	 */
	/*@Bean
	public FilterRegistrationBean jwtFilter() {
		final FilterRegistrationBean registrationBean = new FilterRegistrationBean();
		registrationBean.setFilter(new JwtFilter());
		registrationBean.addUrlPatterns("/rest/");
		return registrationBean;
	}*/


	public static void main(String[] args) {
		SpringApplication.run(LagoonSpringBootApplication.class, args);
	}
}
